<?php
function execute_login(){    
    setWebSiteLayout('tpl_admin_maximized');
    $tpl = XTemplate::getInstance();
    $tpl->assign_file('CONTENT',"modules/admin/actions/login/login_form.html");
    if(isset ($_POST['login'])){        
        if(login_admin($_POST['nume'], $_POST['parola'])){            
            redirectToUrl('/admin/');
        } else {            
            $tpl->parse('main.eroare');
        }

    }


    

}

?>
